package com.mybdqn.service;

import com.mybdqn.pojo.RolePermission;
import java.util.List;
import java.util.Map;

/**
* Service Interface RolePermission
*
* 2017-12-14
*/
public interface RolePermissionService {

    /**
     * 通过主键Id查询RolePermission
     */
    public RolePermission getRolePermissionById(Integer id)throws Exception;

    /**
     * 通过条件Map集合查询RolePermission
     */
    public List<RolePermission> getRolePermissionListByMap(Map<String, Object> param)throws Exception;

	/**
	 * 通过条件Map集合查询RolePermission记录总数
	 */
	public Integer getRolePermissionRecCountByMap(Map<String, Object> param)throws Exception;

    /**
     * 添加RolePermission新记录
     */
    public Integer insertRolePermission(RolePermission rolePermission)throws Exception;

    /**
      * 更新RolePermission记录
      */
    public Integer updateRolePermission(RolePermission rolePermission)throws Exception;

    /**
      * 通过主键Id删除RolePermission
      */
    public Integer deleteRolePermissionById(Integer id)throws Exception;

}